package com.fowo.api.model.quality.check.storage.bad.info;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 质检次品信息 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class QualityCheckStorageBadInfoImportPo {

  /** 质检单编号 */
  @ExcelProperty("质检单编号")
  @LongString(message = "质检单编号数值格式不正确", label = "质检单编号")
  private String parentId;

  /** 模板类型 */
  @ExcelProperty("模板类型")
  @Size(max = 50, message = "模板类型长度不能超过50")
  private String classifyName;

  @ExcelIgnore
  @Schema(title = "模板类型")
  private String classify;

  /** 次品量 */
  @ExcelProperty("次品量")
  @IntegerString(message = "次品量数值格式不正确", label = "次品量")
  private String productBadNum;

  /** 字母 */
  @ExcelProperty("字母")
  @Size(max = 50, message = "字母长度不能超过50")
  private String letter;

  /** Sku */
  @ExcelProperty("Sku")
  @Size(max = 50, message = "Sku长度不能超过50")
  private String sku;
}
